find_package(KDE4 REQUIRED)

include(KDE4Defaults)

add_definitions(${QT_DEFINITIONS} ${KDE_DEFINITIONS})

include_directories(${CMAKE_SOURCE_DIR}
                    ${CMAKE_BINARY_DIR}
                    ${KDE4_INCLUDES})

set(netcfgengine_SRCS
    netcfgengine.cpp)

kde4_add_plugin(plasma_engine_netcfg
                ${netcfgengine_SRCS})

target_link_libraries(plasma_engine_netcfg
                      ${KDE4_PLASMA_LIBS}
                      ${KDE4_KDECORE_LIBS}
                      ${KDE4_KIO_LIBS})

install(TARGETS plasma_engine_netcfg
        DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES plasma-engine-netcfg.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})
